// pages/cart/remark/remark.js
Page({
    data: {
        remark: ''
    },

    onLoad: function () {
        wx.getStorage({
            key: 'remark',
            success: res => {
                this.setData({
                    remark: res.data.remark
                })
            },
        })
    },

    formSubmit: function (e) {
        wx.setStorageSync('remark', e.detail.value.remark)
        wx.navigateBack()
    }
})